﻿@gray-darker: #222;
@gray-dark: #333;
@gray: #555;
@gray-light: #777;
@gray-lighter: #eee;

@gray-border: #ddd;
@gray-link: #aaa;

@brand-primary: #428bca;
@brand-success: #5cb85c;
@brand-info: #5bc0de;
@brand-warning: #f0ad4e;
@brand-danger: #d9534f;

// Bootstrap customize
.btn-primary {
    background-color: @gray-dark !important;
    border-color: @gray-dark !important;

    &:hover {
        background-color: @gray !important;
        border-color: @gray !important;
    }
}

.modal-primary {
    .close {
        color: #fff;
    }

    .modal-header {
        background-color: @gray-dark;
        color: #fff;
    }
}



.form-pagelist {
    .row > div {
        @media (max-width: 768px) {
            text-align: center;
        }

        &:first-child {
            @media (max-width: 768px) {
                margin-bottom: 10px;
            }
        }
    }
}

.navbar-inverse {
    background-color: @gray-dark;
}

.pagination {

    li {
        a {
            color: @gray-dark;

            &:hover {
                background-color: @gray-light;
                color: @gray-dark;
            }
        }

        &.active a {
            background-color: @gray-dark;
            border-color: @gray-dark;

            &:hover {
                background-color: @gray-light;
                color: #fff;
                border-color: @gray-light;
            }
        }
    }
}

// Global style
.bg-content {
    position: relative;
    background-color: #fff;
    margin: 15px 0;

    @media (min-width: 768px) {
        padding: 15px;
        border: 1px solid @gray-border;
        border-radius: 4px;
    }
}

.bg-content-transparent {
    margin: 15px 0;
}

.bg-title {
    padding: 0 15px;
    margin-bottom: 15px;
    border: 1px solid @gray-light;
    border-left-width: 10px;
    border-radius: 3px;
    background-color: @gray-dark;
    color: #fff;
}

.lnk {
    text-decoration: none !important;

    &.lnk-primary {
        color: @gray-dark;

        &:hover {
            color: @gray;
        }
    }
}

.no-standard {
    padding: 17% 0;
}

// Layout style
header {
    .form-social {
        text-align: right;
        margin-top: 15px;
    }

    .logo {
        @media (max-width: 768px) {
            text-align: center;
        }
    }
}

menu {
    padding: 0;
    margin: 0;

    &.affix {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 10;
    }

    .menu-one nav {
        min-height: 40px;
        margin-bottom: 0;

        .navbar-nav li {
            a {
                padding-top: 10px;
                padding-bottom: 10px;
            }

            &.active a {
                background-color: #666 !important;
            }
        }

        .dropdown-menu li a {
            padding: 5px 15px;
        }

        .navbar-form {
            margin-top: 3px;
            margin-bottom: 3px;
        }

        .dropdown-user {
            color: #999;
            text-decoration: none;

            .caret {
                border-top-color: #999;
            }

            &:hover {
                color: #fff;

                .caret {
                    border-top-color: #fff;
                }
            }
        }
    }

    .menu-two {
        background-color: #FFF;
        border-bottom: 1px solid @gray-border;
        box-shadow: 1px 1px 5px @gray-border;

        ul {
            margin: 5px 0;

            li {
                padding: 0 10px;

                a {
                    text-decoration: none;
                    font-size: 12px;
                    color: @gray-link;
                }

                &.active {
                    a {
                        color: @gray-dark;
                        font-weight: bold;
                    }
                }
            }
        }
    }
}

main {
    .site-wide {
        @background: top, black 0, white 100%;
        background: -webkit-linear-gradient(@background);
        background: -o-linear-gradient(@background);
        background: -moz-linear-gradient(@background);
        background: linear-gradient(@background);
        width: 100%;
        zoom: 100%;
        position: absolute;
        height: 110px;
        left: 0;
        right: 0;
        padding: 0;
        opacity: 0.05;
    }

   
}

footer {
    background-color: #FAFAFA;
    border-top: 1px solid @gray-border;
    padding-top: 50px;
    padding-bottom: 15px;

    .title {
        font-weight: bold;
    }

    .form-post, #copyright {
        a {
            font-size: 13px;
            color: @gray-link;
        }
    }

    .row > div {

        @media (max-width: 992px) {
            text-align: center;
        }
    }
}

#btnScrollTop {
    display: none;
    position: fixed;
    bottom: 95px;
    right: 20px;
    cursor: pointer;
}

// Item style
.iEvent {
    a {
        img {
            border: 1px solid @gray-border;
            width: 100%;
        }

        &:hover {

            img {
                opacity: 0.8;
                box-shadow: 1px 1px 5px @gray-border;
            }
        }
    }

    .name {
        margin-bottom: 0;
        margin-top: 3px;
        font-size: 13px;
        color: @gray-dark;
    }

    .deadline {
        font-size: 13px;
        margin-top: 3px;
        color: @gray-link;
    }

    .name, .deadline {
        padding-right: 5px;
        padding-left: 5px;
    }
}

.iProduct {
    .image {
        position: relative;

        .btnEditProduct {
            position: absolute;
            top: 0;
            right: 0;
            border-radius: 0 4px 0 4px;
        }
    }

    .name, .price {
        padding-left: 5px;
        padding-right: 5px;
    }

    .name {
        padding-top: 5px;
        padding-bottom: 3px;
        font-size: 13px;
    }

    .list-price {
        text-decoration: line-through;
        color: @gray-light;
    }

    .chomy-price {
        font-weight: bold;
        font-size: 16px;
        margin-left: 5px;
    }
}

// View style
#event {
    &.index {
        .upComing {
            .list-date {
                li {
                    padding-right: 15px;
                    padding-left: 15px;

                    &.active a {
                        color: @gray-dark;
                    }
                }

                a {
                    color: @gray-link;
                    font-size: 16px;
                }
            }
        }
    }

    &.details {
        .event-info {
            img {
                width: 100%;
                border: 1px solid @gray-border;
            }

            .deadline {
                .label {
                    font-size: 13px;
                    background-color: @gray-light;
                }
            }
        }
    }
}

#post {
    &.details {
        .modified {
            color: @gray-light;
            font-size: 13px;
        }

        .menuRight {
            h4 {
                font-weight: bold;
            }

            li {
                padding: 3px 0;

                a {
                    text-decoration: none;
                    color: @gray-link;

                    &:hover {
                        color: @gray-dark;
                    }
                }

                &.active a {
                    color: @gray-dark;
                }
            }


            hr:last-child {
                display: none;
            }
        }
    }
}

#product {
    &.index {
        .form-filter {
            height: 85px;

            .img-category {
                position: absolute;
                top: 0;
                right: 0;
                border-radius: 0 4px 4px 0;
            }

            .form-category {
                .title {
                    font-size: 24px;
                    font-style: italic;
                }

                img {
                    &:hover, &.active {
                        border: 1px solid @gray-dark;
                    }
                }
            }

            a {
                color: @gray-link;
                text-decoration: none;

                &:hover, &.active {
                    color: @gray-dark;
                }
            }
        }
    }

    &.details {
        .carousel {
            .ctrLeft {
                width: 0;
                left: 15px;
            }

            .ctrRight {
                width: 0;
                right: 15px;
            }

            .ctrLeft, .ctrRight {
                span {
                    color: @gray-dark;
                    margin-top: -60px;
                }
            }
        }

        .bg-content > .row {
            > div:first-child > div {
                @media (min-width: 768px) {
                    padding: 30px 15px;
                }

                .breadcrumb {
                    background-color: #fff;
                    padding: 0;

                    a {
                        color: @gray-link;

                        &:hover {
                            color: @gray-dark;
                        }
                    }
                }

                .name {
                    font-weight: bold;
                    font-size: 18px;
                    margin-bottom: 10px;
                    padding-top: 15px;
                }

                .code {
                    color: @gray-light;
                }

                .views {
                    margin-top: 15px;

                    .label-primary {
                        background-color: @gray-dark;
                        font-size: 14px;
                    }
                }

                .summary {
                    font-size: 13px;
                    color: @gray-light;
                }

                .thumbImage {
                    img {
                        cursor: pointer;
                        margin-bottom: 5px;

                        &:hover, &.active {
                            border-color: @gray-dark;
                        }
                    }
                }
            }

            .zoom {
                img {
                    cursor: url(/img/cursor-zoom-in.bmp), auto;
                }
            }

            > div:last-child > div {
                @media (min-width: 768px) {
                    padding: 30px 15px;
                }

                .form-group {
                    .title {
                        color: @gray-light;
                        font-size: 13px;
                    }

                    .value {
                        font-weight: bold;
                    }
                }

                .cus-link {
                    color: @gray-link;
                    text-decoration: underline;

                    &:hover {
                        color: @gray-dark;
                    }
                }

                .form-color {
                    a {
                        margin-top: 5px;
                        height: 25px;

                        &.active, &:hover {
                            border: 3px double @gray-border;
                            height: 27px;
                        }
                    }
                }

                .form-price {
                    .list-price {
                        text-decoration: line-through;
                        color: #aaa;
                        margin-right: 5px;
                        font-size: 13px;
                    }

                    .chomy-price {
                        font-size: 17px;
                        font-weight: bold;
                    }

                    .vnd-price {
                        color: #aaa;
                        font-size: 13px;
                        font-style: italic;
                    }
                }

                .form-logan {
                    padding-top: 5px;

                    .logan {
                        border: 1px solid @gray-border;
                        box-shadow: 1px 1px 5px @gray-border;
                        border-radius: 4px;
                        text-align: center;
                        padding: 5px;
                        font-weight: bold;
                        font-size: 13px;
                    }
                }

                .form-social {
                    a {
                        font-size: 20px;
                        color: @gray-link;
                        text-decoration: none;

                        &:hover {
                            color: @gray-dark;
                        }
                    }
                }
            }
        }
    }
}

#shoppingCartModal {
    .modal-header {
        background-color: @gray-dark;
        color: #FFF;
    }

    .close {
        color: #FFF;
    }

    .modal-body {
        padding: 0;

        .table {
            margin: 0;

            .name, .price {
                font-weight: bold;
            }

            .code, .price-vn {
                color: @gray-link;
                font-size: 13px;
            }

            .type {
                font-size: 13px;

                span {
                    color: @gray-link;
                    margin-right: 15px;

                    b {
                        color: @gray-dark;
                    }
                }
            }

            .total {
                .title {
                    text-align: right;
                    font-weight: bold;
                }

                .usd {
                    font-weight: bold;
                    font-size: 18px;
                }

                .vnd {
                    color: @gray-link;
                }
            }
        }
    }
}


// Chuẩn
.label-primary {
    background-color: #333;
}

#payment {

    &.index, &.confirmation {

        .ordertime {
            margin-top: 10px;
            color: #aaa;
            font-style: italic;
        }

        .ordercode {
            margin-top: 5px;
            font-size: 25px;
            font-weight: bold;
        }

        #pv-details {

            .name {
                font-weight: bold;
                margin-bottom: 5px;
            }

            .price {
                text-align: right;
                font-weight: bold;
            }

            .unitprice {
                .vnd {
                    color: #aaa;
                }

                .usd {
                    font-weight: bold;
                    margin-bottom: 5px;
                }
            }

            .property {
                margin-right: 10px;

                .text {
                    color: #aaa;
                }

                .value {
                    font-weight: bold;
                }
            }

            .price-checkout {
                background-color: #777;
                color: #fff;

                .price {
                    font-size: 16px;
                }
            }
        }

        #pv-onepay {

            .title {
                font-weight: bold;
                font-size: 18px;
            }

            .payment-ruler {
                height: 280px;
                overflow-y: scroll;
                border: 1px solid #ddd;
                padding: 15px;
            }
        }
    }
}
